package com.chen.posp.util.iso8583;

/**
 * <p>
 * Title:
 * </p>
 * <p>
 * Description:
 * </p>
 * <p>
 * Copyright: Copyright (c) 2003
 * </p>
 * <p>
 * Company: Mobilebest Inc.
 * </p>
 * @author Li-Wen.Zhang
 * @version 1.0
 */

public class FieldId {
	double id;

	public FieldId(double id) {
		this.id = id;
	}

	public String toString() {
		return Double.toString(id);
	}

	public int hashCode() {
		return (int) id;
	}

	public boolean equals(Object fld) {
		if (fld == null) return false;
		if (fld instanceof FieldId)
			return this.id == ((FieldId) fld).id;
		else
			return false;
	}
}
